package com.elcl.util;

import android.util.Log;

import com.elcl.support.userage.domain.BaseSimpleItem;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lichunlin on 16/6/29.
 * 测试的辅助类
 */
public class TestUtils {

    public static final String TAG = "TestUtils";

    public static long time_start = 0;

    public static void testDurationStart() {
        time_start = System.currentTimeMillis();
    }

    public static void testDurationEnd() {
        long time_end = System.currentTimeMillis();
        long time_duration = time_end - time_start;
        Log.i(TAG, "" + time_duration);
    }

    public static List<BaseSimpleItem> getTestUtils() {
        List<BaseSimpleItem> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            BaseSimpleItem baseSimpleItem = new BaseSimpleItem();
            list.add(baseSimpleItem);
        }
        return list;
    }

}
